#ifndef __GAMEPHYSPRITE_H__
#define __GAMEPHYSPRITE_H__
#include "cocos2d.h"
#include "cocos-ext.h"
#include "Box2D/Box2D.h"
#include "Common.h"


class GamePhySprite
{
public:
	GamePhySprite();
	virtual ~GamePhySprite();
	b2Body* getBody() { return m_pBody; }

public:
	virtual b2Body* CreateBody( b2World* world) = 0;
	virtual void onPhyPosChange() = 0; 
	virtual EGameSpriteType getSpriteType() = 0;

protected:
	b2Body* m_pBody;
private:
};

struct MyUserData
{
	MyUserData(GamePhySprite* p) : ptr(p){}
	GamePhySprite* ptr;
};
#endif